<!--  

    字符串.length              字符串长度

    字符串.charAt(索引)         索引处的字符是
    字符串.[索引]               索引处的字符是

    字符串.indexOf("字符")      字符的索引是

    字符串.replace("字符", "替换内容")    替换字符（并不改变原字符串，而是输出一个新的修改后的字符串）

    字符串.includes("字符")     是否包含字符


-->





<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>字符串</title>
</head>

<body>
    <script>
        let msg="mamashengdexiaoheizi"
        console.log(msg.length);
        console.log(msg.charAt(5));
        console.log(msg[6]);
        console.log(msg.indexOf("x"));
        console.log(msg.includes("h"));





    </script>

</body>

</html>